package com.example.surveyapplication;

import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class ThankActivity extends Activity implements OnClickListener {
	Button btnReset;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_thank);
		setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
		
		btnReset = (Button)findViewById(R.id.btnReset_Thank);
		
		btnReset.setOnClickListener(this);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.thank, menu);
		return true;
	}

	public void onClick(View view) {
		Intent intent;
		
		switch (view.getId()) {
		case R.id.btnReset_Thank:
			intent = new Intent(this, PersonalInfoActivity.class);
			startActivity(intent);
			finish();
			break;
		}
	}
}
